import request from '@/request'

export function findAll(data) {
    return request.post("sickroom/findAll",data);
}

export function doimportxls(){
    return request.post("sickroom/import");
}

export function doexportxls(){
    return request.get('sickroom/download');
}
export function doSaveOrUpdate(data){
    let path = data.homeId ? "update" : "save";
    return request.post(`sickroom/${path}`, data);
}
export function findAllHospital(){
    return request.post("sickroom/findAllHospital");
}
export function findAllDept(data){
    return request.post("sickroom/findAllDept",data,request.textConfig);
}
export function del(hId){
   
    return request.post("sickroom/delete", hId ,request.textConfig);
}

export function find(data){
   
    return request.post("sickroom/find", data);
}


